package com.wenan.data
{
	import mx.collections.ArrayCollection;

	public class JsonCommon
	{
		private var _propertys:ArrayCollection = new ArrayCollection();
		

		public function get propertys():ArrayCollection
		{
			return _propertys;
		}

		public function JsonCommon()
		{
			putProperty();
		}
		public function putProperty():void {
			
		}
		
		public function conver(currentObject:Object, targetObject:Object):void {
			if (currentObject) {
				for(var i:int=0; i<propertys.length; i++) {
					if (currentObject.hasOwnProperty(propertys[i])) {
						targetObject[propertys[i]] = currentObject[propertys[i]];
					}
				}
			}
		}
	}
}